<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>微型库 测试页</title>
    <meta name="description" content="史莱姆封装的微型库测试">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
  </head>
  <body>
    <!--[if lt IE 7]>
      <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
    <![endif]-->
    <div id="bate" class="bate">asdsadsadasd</div>
    <div id="bate2" class="bate2">adsaxzcwzvasdASDFAS</div>
    <div id="bate3" style="background: red; width: 300px;" class="bate3">sadasdasds</div>

    
    <script src="slm.js"></script>
    <!-- <script src="jquery-3.3.1.min.js"></script> -->
    <script>
      // console.log($)
      
      document.body.onclick = function () {
        $('div')
          .append(1, '<b>Hello</b>')
          .attr({
            'auther': 'slm',
            'version': '1.0.0',
            'time': () => new Date()
          })
          .removeAttr('time')
          .html(1, 123456)
        console.log($('div').index('span'))
      }
    </script>
  </body>
</html>